<script src="https://www.gstatic.com/firebasejs/5.5.7/firebase.js"></script>
<script>
  // Initialize Firebase
  var config = {
    apiKey: "AIzaSyDd6wbr4oJokHZmFufm-ucXXyO-Qefn1Fk",
    authDomain: "apppoint-1d4ec.firebaseapp.com",
    databaseURL: "https://apppoint-1d4ec.firebaseio.com",
    projectId: "apppoint-1d4ec",
    storageBucket: "",
    messagingSenderId: "267332444180"
  };
  firebase.initializeApp(config);
</script>
<html>
  <h1>{ login }</h1>
  <div class="g-signin2" data-onsuccess="onSignIn">
  </div>
  <a href="1123" onclick="onSignIn();">Sign in</a>
  <a href="#" onclick="signOut();">Sign out</a>
</html>
<meta name="google-signin-client_id" content="YOUR_CLIENT_ID.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script>
function onSignIn(googleUser) {
  var profile = googleUser.getBasicProfile();
  console.log('ID: ' + profile.getId()); // Do not send to your backend! Use an ID token instead.
  console.log('Name: ' + profile.getName());
  console.log('Image URL: ' + profile.getImageUrl());
  console.log('Email: ' + profile.getEmail()); // This is null if the 'email' scope is not present.
}
  function signOut() {
    var auth2 = gapi.auth2.getAuthInstance();
    auth2.signOut().then(function () {
      console.log('User signed out.');
    });
  }


</script>
